#include <iostream>

using namespace std;


void print_multi(int * arr, int m, int n)
{
   for(int i = 0; i < m; ++i)
   {

       for(int j = 0; j < n; ++j)
       {
           cout << "line" << i << ": ";
           cout << "No. " << j <<": ";

            cout << *arr;
            ++arr;
            cout << endl;
       }

   }


}



int main()
{

    int a[3][2] = {{1,2}, {3, 4}  ,{5,6}};


    print_multi(a[0], 3 , 2);


    return 0;
}
